package com.learncloud.security;


import com.learncloud.entity.SysRole;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * <p>
 * <p/>
 *
 * @author : yj
 */
public class SysUserUtils {

    public static List<SysRole> getRoles(){
        return new ArrayList<>();
//        return getUserDetails().getRoles();
    }

//    public static SysUserDetails getUserDetails(){
//        Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
//        SysUserDetails userDetails = (SysUserDetails)authentication.getPrincipal();
//        return userDetails;
//    }
}
